package com.example.lcpractice.utils;

import com.example.lcpractice.datastructure.TreeNode;

public class BinaryTreeUtils {
    /**
     * 二叉树 [1,2,2,3,4,4,3]
     *
     *     1
     *
     *    / \
     *
     *   2   2
     *
     *  / \ / \
     *
     * 3  4 4  3
     */
    public static TreeNode createTree1(Integer[] arr){
        if (arr==null||arr.length<1) {
            throw new RuntimeException("传入数组为空");
        }
        TreeNode root = new TreeNode(arr[0]);

        return null;
    }
}
